package cn.com.lsy.product.lepao.util.payUtil.weChatPayUtil;


import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.ResourceBundle;

import org.apache.log4j.Logger;

/**
 * ΢�ŵ����ò���
 * @author lb
 * @date 2015��11��25������4:19:57
 */
@SuppressWarnings("unused")
public class WeixinConfigUtils {

	private static Logger log = Logger.getLogger(WeixinConfigUtils.class);

	//�˿�����
	public static String refundUrl="https://api.mch.weixin.qq.com/secapi/pay/refund";
	/*
	 * �˿�ص��ӿ�
	 */
	public static String refundCallBackUrl="http://www.lp-kd.com/getRefundCallBack.htm";
	public static String appid ="wxd34f7dc698b271af";
	public static String mch_id="1428438802";
	public static String notify_url="http://www.lp-kd.com/getWXcallback.htm";
	//���Ի���
	//public static String notify_url="http://118.123.22.190:9000/lpkd/getWXcallback.htm";

	static {
		/*ResourceBundle bundle = ResourceBundle.getBundle("resources/sys");
		appid = bundle.getString("appid");
		mch_id = bundle.getString("mch_id");
		notify_url = bundle.getString("notify_url");*/

		try{
			/*InputStream is = WeixinConfigUtils.class.getResourceAsStream("/resources/config.properties");
			System.out.println(is.getClass().getName());
			Properties properties = new Properties();
			properties.load(is);*/
			
			/*appid = properties.getProperty("appid");
			mch_id = properties.getProperty("mch_id");*/
			//notify_url = properties.getProperty("notify_url");
		}catch(Exception ex){
			System.out.println("���������ļ���"+ex.getMessage());
			log.debug("���������ļ���"+ex.getMessage());
		}
	}
}
